//
// Created by 30986 on 2020/11/25.
//水仙花数:是指一个三位数 各位数字立方和等于该数本身

#include "Ex02021.h"
#include <iostream>
using namespace std;

int main(){
    for (int i = 100; i < 1000; ++i) {
        int x = i/100;  //百位
        int y = i/10%10;  //十位
        int z = i%10;  //个位
        if(x*x*x + y*y*y + z*z*z == i)  //立方和
            cout<<i<<"\n";
    }
}